package com.cloudptt.api.product.func.call.single;

import java.io.Serializable;

import com.cloudptt.api.product.func.call.CallAttr;

public class SingleCallInfo implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String curCallKey = null;
	private String callIdStr = null;
	private int callType = CallAttr.CallType_Single;
	private int callDir = CallAttr.CallDir_MO;
	private boolean isDac = false;
	private int callState = -1;
	private boolean hasVideo = false;
//	private boolean micEnabled = false;


	public SingleCallInfo(String curCallKey,String callIdStr,int callType,int callDir,boolean isDac,int callState,boolean micEnabled,boolean hasVideo)
	{
		this.curCallKey = curCallKey;
		this.callIdStr = callIdStr;
		this.callType = callType;
		this.callDir = callDir;
		this.isDac = isDac;
		this.callState = callState;
		this.hasVideo = hasVideo;
//		this.micEnabled = micEnabled;
	}
	
	public String getCurCallKey() {
		return curCallKey;
	}

	public int getCallType() {
		return callType;
	}

	public int getCallDir() {
		return callDir;
	}

	public boolean isDac() {
		return isDac;
	}
	public void setCallState(int callState) {
		this.callState = callState;
	}

	public int getCallState() {
		return callState;
	}
	public boolean isHasVideo() {
		return hasVideo;
	}
//	public void setMicEnabled(boolean micEnabled) {
//		this.micEnabled = micEnabled;
//	}
//	
//	public boolean isMicEnabled() {
//		return micEnabled;
//	}
	public String getCallIdStr() {
		return callIdStr;
	}
	
	public String toString() 
	{
		StringBuffer strBuff = new StringBuffer("WebrtcCallInfo:");
		strBuff.append("curCallKey = ").append(curCallKey).append(",");
		strBuff.append("callType = ").append(callType).append(",");
		strBuff.append("callDir = ").append(callDir).append(",");
		strBuff.append("isDac = ").append(isDac).append(",");
		strBuff.append("callDir = ").append(callDir).append(",");
		strBuff.append("callState = ").append(callState).append(".");
//		strBuff.append("micEnabled = ").append(micEnabled).append(".");

		return strBuff.toString();
	}
}
